export const toKDotString = function (n: number) {
    let str = '' + n;
    let finalStr = '';
    for (let i = str.length - 1; i >= 0; i--) {
        finalStr = str[i] + finalStr;

        let c = str.length - i;
        if (i != 0) {
            if (c % 3 == 0) {
                finalStr = ',' + finalStr;
            }
        }
    }
    return finalStr;
};